import 'package:flutter/material.dart';

import 'public_box_shadow.dart';

/// FileName shadow_decoration
///
/// @Author lax
/// @Date 2023/5/4
///
/// @Description

class ShadowDecoration extends BoxDecoration {
  ShadowDecoration({
    double? radius,
    Color? color = Colors.white,
    Color? shadowColor,
    BoxShadow? shadow,
  }) : super(
          boxShadow:
              shadow != null ? [shadow] : [PublicBoxShadow(color: shadowColor)],
          color: color,
          borderRadius: BorderRadius.circular(radius ?? 0),
        );
}
